import {get,post} from '../utils/request'
interface List {
    key?:string
    name?:string
    mobile?:string
    houseno?:string
    state?:number
    usertype?:number
    buildingid?:number
    page:number
    psize:number
}
interface Add {
    id:number
    photo:string
    name:string
    houseid: number
    usertype: number
    sex: number
    mobile:string
    usernative:string
    cardid:string
    nation:string
}
export const getUserList = (params:List)=>{
    return get('userinfo/list',params)
}
export const getUserAdd = (data:Add)=>{
    return post('userinfo/add',data)
}
export const getUserDel = (params:any)=>{
    return get('userinfo/delete',params)
}
export const getUserDelall = (data:any)=>{
    return post('userinfo/deleteall',data)
}
export const getUsetUpdata = (data:any)=>{
    return post('userinfo/updatestate',data)
}
export const getUserType = (data:any)=>{
    return get('userinfotype/list',data)
}
